<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="../bootstrap-3.3.7-dist/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="../css/top.css">
</head>

<body>
    <div class="top-wrapper" id="topVue">
        <div class="top-nav">
            <div class="top-nav-left">
                <ul>
                    <li>
                        <a @click="goHome()">首页</a>
                    </li>
                    <li>
                        <a>个人中心</a>
                    </li>
                </ul>
            </div>

            <div v-if='' class="top-nav-right">
                <!-- <a class="user-play">订货商</a> -->
                <a @click="login()">登录</a>
                <a @click="register()">注册</a>
            </div>


            <div class="clear"></div>
        </div>
        <div class="top-header">
            <div class="top-header-content">
                <!-- logo图片 -->
                <div class="logoPic">
                    <a href="" title="专业的纺织加工订单交易平台">
                        <img src="../images/logo.png">
                    </a>
                </div>
                <!-- 微信小程序 -->
                <div class="wx-code">
                    <img src="../images/wm.jpg" alt="微信小程序">
                    <p>关注微信小程序</p>
                </div>
            </div>
        </div>

    </div>


</body>
<script src="../js/jquery.min.2.1.4.js"></script>
<script src="../js/common.js"></script>
<script src="../bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
<script>
    var topVue = new Vue({
        el: '#topVue',
        data:function() {
            return {

            }
        },
        methods:{
            goHome: function() {
                window.top.location = '/src/html/index.html';
            },
            login:function(){
                window.top.indexVue.openLoginPane();
            },
            register:function(){

            }
        }
    })
    
    
</script>

</html>